package com.example.component.c_broadcast.orderly

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast

class OrderlyBroadcastReceiver : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        Toast.makeText(
            context, "received in OrderlyBroadcastReceiver and abort broadcast",
            Toast.LENGTH_SHORT
        ).show()

        abortBroadcast()
    }
}